package com.atguigu.gmall.order.client.impl;

import com.atguigu.gmall.order.client.OrderFeignClient;
import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.order.model.OrderInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

@Slf4j
@Component
public class OrderDegradeFeignClient implements OrderFeignClient {

    /**
     * 汇总订单确认页面需要的数据
     * @return
     */
    @Override
    public Result<Map> OrderTrade() {
        log.error("服务降级方法执行,,目标服务{},不可用","service-order");
        return null;
    }

    /**
     * 根据orderId查询订单信息,包含订单明细
     * @param orderId
     * @return
     */
    @Override
    public OrderInfo getOrderInfoByOrderId(Long orderId) {
        log.error("服务降级方法执行,,目标服务{},不可用","service-order");
        return null;
    }
}